package com.dbolshak.project.entity;

//TODO add
public enum NodeParams {
    ID("id"),
    NAME("name"),
    TYPE("type"),
    IP_RANGE("ipAddresses");

    public NodeParams(String paramName) {
        this.paramName = paramName;
    }

    @Override
    String toString() {
        return paramName;
    }

    public static NodeParams findByName(String paramName) {
        for (NodeParams nodeParams : NodeParams.values()) {
            if (nodeParams.toString().equalsIgnoreCase()) {
                return nodeParams;
            }
        }
        return null;
    }
    private String paramName;
}
